import request from "../axios";
const url = "/system/user";
const api = {
    //登录
    login(data: any) {
        return request({
            url: `${url}/login`,
            method: "post",
            data: data,
        });
    },
    //注册
    register(data: any) {
        return request({
            url: `${url}/register`,
            method: "post",
            data: data,
        });
    },
};

export default api;
